//
// Created by lfm on 25-4-7.
//

#include "Coordinate.h"

Coordinate::Coordinate(int x1, int y1)
{
    x = x1;
    y = y1;
    cout << "有参构造的调用\n";
}

Coordinate::Coordinate(Coordinate& p)
{
    x = p.x;
    y = p.y;
    cout << "拷贝构造的调用\n";
}

Coordinate::~Coordinate()
{
    cout << "无参构造的调用\n";
}

int Coordinate::getx()
{
    return x;
}
int Coordinate::gety()
{
    return y;
}